package com.wzy.auth.controller;

import com.wzy.ucenter.model.dto.RegisterDto;
import com.wzy.ucenter.service.UserRegisterService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wzy
 * @Date 2024/2/1 20:36
 * @description: 用户注册
 */
@Slf4j
@RestController
public class UserRegisterController {
    @Autowired
    private UserRegisterService userRegisterService;
    @ApiOperation(value = "注册", tags = "注册")
    @PostMapping("/register")
    public void register(@RequestBody RegisterDto registerDto) {
        log.info("用户注册信息{}",registerDto);
        userRegisterService.register(registerDto);
    }
}
